package com.chixing.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "zyxplan")
public class ItemPlan {
    @Id
    private Integer itineraryPlanId;
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String itineraryTitle;
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String itineraryAdd;
    @Field(type = FieldType.Keyword)
    private String itineraryMainImg;
    @Field(type = FieldType.Keyword)
    private String itineraryDescribe;
    @Field(type = FieldType.Keyword)
    private String itineraryText;
    @Field(type = FieldType.Keyword)
    private Float itineraryBudget;
    @Field(type = FieldType.Keyword)
    private Integer itineraryTravelDays;
    @Field(type = FieldType.Keyword)
    private Integer numberPerson;

    public ItemPlan() {
    }

    public ItemPlan(Integer itineraryPlanId, String itineraryTitle, String itineraryAdd, String itineraryMainImg, String itineraryDescribe, String itineraryText, Float itineraryBudget, Integer itineraryTravelDays, Integer numberPerson) {
        this.itineraryPlanId = itineraryPlanId;
        this.itineraryTitle = itineraryTitle;
        this.itineraryAdd = itineraryAdd;
        this.itineraryMainImg = itineraryMainImg;
        this.itineraryDescribe = itineraryDescribe;
        this.itineraryText = itineraryText;
        this.itineraryBudget = itineraryBudget;
        this.itineraryTravelDays = itineraryTravelDays;
        this.numberPerson = numberPerson;
    }

    public Integer getItineraryPlanId() {
        return itineraryPlanId;
    }

    public void setItineraryPlanId(Integer itineraryPlanId) {
        this.itineraryPlanId = itineraryPlanId;
    }

    public String getItineraryTitle() {
        return itineraryTitle;
    }

    public void setItineraryTitle(String itineraryTitle) {
        this.itineraryTitle = itineraryTitle;
    }

    public String getItineraryAdd() {
        return itineraryAdd;
    }

    public void setItineraryAdd(String itineraryAdd) {
        this.itineraryAdd = itineraryAdd;
    }

    public String getItineraryMainImg() {
        return itineraryMainImg;
    }

    public void setItineraryMainImg(String itineraryMainImg) {
        this.itineraryMainImg = itineraryMainImg;
    }

    public String getItineraryDescribe() {
        return itineraryDescribe;
    }

    public void setItineraryDescribe(String itineraryDescribe) {
        this.itineraryDescribe = itineraryDescribe;
    }

    public String getItineraryText() {
        return itineraryText;
    }

    public void setItineraryText(String itineraryText) {
        this.itineraryText = itineraryText;
    }

    public Float getItineraryBudget() {
        return itineraryBudget;
    }

    public void setItineraryBudget(Float itineraryBudget) {
        this.itineraryBudget = itineraryBudget;
    }

    public Integer getItineraryTravelDays() {
        return itineraryTravelDays;
    }

    public void setItineraryTravelDays(Integer itineraryTravelDays) {
        this.itineraryTravelDays = itineraryTravelDays;
    }

    public Integer getNumberPerson() {
        return numberPerson;
    }

    public void setNumberPerson(Integer numberPerson) {
        this.numberPerson = numberPerson;
    }

    @Override
    public String toString() {
        return "ItemPlan{" +
                "itineraryPlanId=" + itineraryPlanId +
                ", itineraryTitle='" + itineraryTitle + '\'' +
                ", itineraryAdd='" + itineraryAdd + '\'' +
                ", itineraryMainImg='" + itineraryMainImg + '\'' +
                ", itineraryDescribe='" + itineraryDescribe + '\'' +
                ", itineraryText='" + itineraryText + '\'' +
                ", itineraryBudget=" + itineraryBudget +
                ", itineraryTravelDays=" + itineraryTravelDays +
                ", numberPerson=" + numberPerson +
                '}';
    }
}
